package com.microservice.dbandcache.dao;


import com.microservice.dbandcache.mapper.UserMapper;
import com.microservice.dbandcache.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class UserDao {

    @Autowired(required = false)
    private UserMapper userMapper;

    public User selectByPrimaryKey(long id){
        return  userMapper.selectByPrimaryKey(id);
    }
}
